from django.urls import path, include, re_path

from user.views import UserView, LoginView, logout

from user import views
urlpatterns = [
    # 请求方式是get 还是post get请求就会调用视图类里面的get方法 post请求就会调用视图类里面的post方法
    path('register/', UserView.as_view(), name='register'),
    path('login/', LoginView.as_view(), name='login'),
    path('logout/',logout,name='logout')
]